import baiduDemo.BaiduDemo;
import dto.CandidatesDto;
import dto.SearchFaceDto;
import faceService.*;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/28.
 */
public class test {
    public static void main(String[] args) throws Exception {
//        SearchFace searchFace = new SearchFace();
//        VerifyFace verifyFace = new VerifyFace();
////        String imgPath = "C:\\Users\\Administrator\\Desktop\\facePic\\s3\\8.bmp";
//        String imgPath1 = "C:\\Users\\Administrator\\Desktop\\opencv\\image\\dtj.jpg";
//        SearchFaceDto searchFaceDto = searchFace.searchFace(imgPath1);
//
//        for (CandidatesDto candidatesDto : searchFaceDto.getData().getCandidates()) {
//            String personId = candidatesDto.getPerson_id();
//            verifyFace.verifyFace(imgPath1, personId);
//        }

//        FaceDetect faceDetect = new FaceDetect();
//        faceDetect.faceDetect("C:\\Users\\Administrator\\Desktop\\facePic1\\d.jpg");


//        JmvrMIDlet jmvrMIDlet = new JmvrMIDlet();
//        jmvrMIDlet.startApp();

//        BaiduDemo baiduDemo = new BaiduDemo();
//        List<String> group = new ArrayList<String>();
//        group.add("test");
//        baiduDemo.registPerson("C:\\Users\\Administrator\\Desktop\\pic1\\9.jpg" , "difftest", group);
//        baiduDemo.identify("C:\\Users\\Administrator\\Desktop\\pic1\\7.jpg", group);
//        baiduDemo.registPerson("C:\\Users\\Administrator\\Desktop\\facePic1\\s2\\1.bmp", "difftest2", group);
//        baiduDemo.registPerson("C:\\Users\\Administrator\\Desktop\\\\pic1\\7.jpg", "difftest3", group);
//        baiduDemo.identify("C:\\Users\\Administrator\\Desktop\\facePic1\\s2\\4.bmp", group);

//        CreatePerson createPerson = new CreatePerson();
//        createPerson.createPerson("test1", "test1", "C:\\Users\\Administrator\\Desktop\\pic1\\1.jpg");
        AddFace addFace = new AddFace();
        addFace.addFaceImg("test1",  "C:\\Users\\Administrator\\Desktop\\pic1\\9.jpg", "test2");
    }
}
